<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="/blogs/css/bootstrap.min.css"></head>
  <body>
    <nav class="navbar navbar-inverse">
      <div class="container-fluid">
        <div class="navbar-header">
          <a class="navbar-brand" href="#">博客</a></div>
      </div>
      <!-- /.container-fluid --></nav>@section('content')
    <div class="container-fluid">
      <a class="btn btn-primary" href="/blog/create">添加文章</a>
      <div class="panel panel-default">@foreach($wen as $v)
        <div class="panel-body">
          <a href="">{{$v->title}}</a>
          <a href="/blog/{{$v->id}}.html" class="btn btn-info">阅读</a>
          <a href="/blog/{{$v->id}}/edit" class="btn btn-info">修改</a>
          <form action="/blog/{{$v->id}}" method="post" style="display: inline-block;">{{ method_field('DELETE') }} {{ csrf_field() }}
            <button type="submit" class="btn btn-danger">删除</button></form>
        </div>
      </div>
      <div class="panel panel-default">@endforeach
        <ul class="pagination">
          <li class="disabled">
            <span>«</span></li>
          <li class="active">
            <span>1</span></li>
          <li>
            <a href="#">2</a></li>
          <li>
            <a href="#" rel="next">»</a></li>
        </ul>
      </div>@show
      <div class="panel-footer">
        <p class="text-muted">footer</p></div>
      <style type="text/css">.panel-footer { position: absolute; bottom: 0; width: 100%; height: 60px; background-color: #555; }</style></body>
</html>